package chp10.menu;

import java.util.Scanner;

public class Menu {

    Scanner input = new Scanner(System.in);

    public void loginMenu(){
        System.out.println("欢迎使用学生管理系统");
        System.out.println("1.进入系统");
        System.out.println("2.退出");
        System.out.print("请选择:");
        int choose = input.nextInt();
        if(choose == 1){
            mainMenu();
        }else{
            System.out.println("再见");
        }
    }

    public void mainMenu(){
        System.out.println("\n成功进入系统");
        System.out.println("1.新增学生");
        System.out.println("2.修改学生");
        System.out.println("3.查询学生");
        System.out.println("4.删除学生");
        System.out.print("请选择:");
    }

    public static void main(String[] args) {
        Menu menu = new Menu();
        menu.loginMenu();
    }
}
